<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../assets/lib/layui/css/layui.css">
    <link rel="stylesheet" href="../assets/css/addmovie.css">
    <link rel="stylesheet" href="../assets/lib/cropper/cropper.css">
</head>

<body>
    <div class="layui-card">
        <div class="layui-card-header">上线电影</div>
        <div class="layui-card-body">
            <form class="layui-form" id="mvinfo">
                <div class="layui-form-item">
                    <label class="layui-form-label">电影名称</label>
                    <div class="layui-input-block">
                        <input type="text" name="tittle" required lay-verify="required" placeholder="请输入电影名称" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item ">
                    <label class="layui-form-label">电影分类</label>
                    <div class="layui-input-block">
                        <select name="cate_id">
                           
                        </select>
                    </div>
                </div>

                <div class="layui-form-item">

                    <label class="layui-form-label">电影描述</label>

                    <div class="layui-input-block" style="height: 400px;">

                        <textarea name="description"></textarea>
                    </div>
                </div>


                <div class="layui-form-item">

                    <label class="layui-form-label">电影海报</label>
                    <div class="layui-input-block cover-box">
                        <div class="cover-left">
                            <img id="image" src="../assets/images/logo.jpg" alt="" />
                        </div>
                        <div class="cover-right">
                            <div class="img-preview"></div>
                            <button type="button" class="layui-btn layui-btn-danger" id="chooseimg">选择海报
                    </button>
                            <input type="file" id="choose" style="display: none;">
                        </div>
                    </div>
                </div>

                <div class="layui-form-item" id="sub">
                    <button class="layui-btn" lay-submit lay-filter="formDemo">已上映</button>
                    <button class="layui-btn layui-btn-primary" lay-submit id="adv">预售</button>
                </div>



            </form>
        </div>
    </div>


    <script type="text/html" id="tql-cate">
        <option value="">请选择电影分类</option>
        {{each}}
        <option value={{$value.id}}>{{$value.name}}</option>
        {{/each}}
    </script>


    <script src="../assets/lib/layui/layui.all.js"></script>
    <script src="../assets/lib/jquery.js"></script>
    <script src="../assets/lib/template-web.js"></script>
    <script src="../assets/js/baseAPI.js"></script>
    <script src="../assets/lib/tinymce/tinymce.min.js"></script>
    <script src="../assets/lib/tinymce/tinymce_setup.js"></script>
    <script src="../assets/lib/cropper/Cropper.js"></script>
    <script src="../assets/lib/cropper/jquery-cropper.js"></script>
    <script src="../assets/js/addmovie.js"></script>
</body>

</html>